package com.cf.apiInstance.domain;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class ApiLogExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ApiLogExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andSourceIpIsNull() {
            addCriterion("source_ip is null");
            return (Criteria) this;
        }

        public Criteria andSourceIpIsNotNull() {
            addCriterion("source_ip is not null");
            return (Criteria) this;
        }

        public Criteria andSourceIpEqualTo(String value) {
            addCriterion("source_ip =", value, "sourceIp");
            return (Criteria) this;
        }

        public Criteria andSourceIpNotEqualTo(String value) {
            addCriterion("source_ip <>", value, "sourceIp");
            return (Criteria) this;
        }

        public Criteria andSourceIpGreaterThan(String value) {
            addCriterion("source_ip >", value, "sourceIp");
            return (Criteria) this;
        }

        public Criteria andSourceIpGreaterThanOrEqualTo(String value) {
            addCriterion("source_ip >=", value, "sourceIp");
            return (Criteria) this;
        }

        public Criteria andSourceIpLessThan(String value) {
            addCriterion("source_ip <", value, "sourceIp");
            return (Criteria) this;
        }

        public Criteria andSourceIpLessThanOrEqualTo(String value) {
            addCriterion("source_ip <=", value, "sourceIp");
            return (Criteria) this;
        }

        public Criteria andSourceIpLike(String value) {
            addCriterion("source_ip like", value, "sourceIp");
            return (Criteria) this;
        }

        public Criteria andSourceIpNotLike(String value) {
            addCriterion("source_ip not like", value, "sourceIp");
            return (Criteria) this;
        }

        public Criteria andSourceIpIn(List<String> values) {
            addCriterion("source_ip in", values, "sourceIp");
            return (Criteria) this;
        }

        public Criteria andSourceIpNotIn(List<String> values) {
            addCriterion("source_ip not in", values, "sourceIp");
            return (Criteria) this;
        }

        public Criteria andSourceIpBetween(String value1, String value2) {
            addCriterion("source_ip between", value1, value2, "sourceIp");
            return (Criteria) this;
        }

        public Criteria andSourceIpNotBetween(String value1, String value2) {
            addCriterion("source_ip not between", value1, value2, "sourceIp");
            return (Criteria) this;
        }

        public Criteria andTokenInfoIsNull() {
            addCriterion("token_info is null");
            return (Criteria) this;
        }

        public Criteria andTokenInfoIsNotNull() {
            addCriterion("token_info is not null");
            return (Criteria) this;
        }

        public Criteria andTokenInfoEqualTo(String value) {
            addCriterion("token_info =", value, "tokenInfo");
            return (Criteria) this;
        }

        public Criteria andTokenInfoNotEqualTo(String value) {
            addCriterion("token_info <>", value, "tokenInfo");
            return (Criteria) this;
        }

        public Criteria andTokenInfoGreaterThan(String value) {
            addCriterion("token_info >", value, "tokenInfo");
            return (Criteria) this;
        }

        public Criteria andTokenInfoGreaterThanOrEqualTo(String value) {
            addCriterion("token_info >=", value, "tokenInfo");
            return (Criteria) this;
        }

        public Criteria andTokenInfoLessThan(String value) {
            addCriterion("token_info <", value, "tokenInfo");
            return (Criteria) this;
        }

        public Criteria andTokenInfoLessThanOrEqualTo(String value) {
            addCriterion("token_info <=", value, "tokenInfo");
            return (Criteria) this;
        }

        public Criteria andTokenInfoLike(String value) {
            addCriterion("token_info like", value, "tokenInfo");
            return (Criteria) this;
        }

        public Criteria andTokenInfoNotLike(String value) {
            addCriterion("token_info not like", value, "tokenInfo");
            return (Criteria) this;
        }

        public Criteria andTokenInfoIn(List<String> values) {
            addCriterion("token_info in", values, "tokenInfo");
            return (Criteria) this;
        }

        public Criteria andTokenInfoNotIn(List<String> values) {
            addCriterion("token_info not in", values, "tokenInfo");
            return (Criteria) this;
        }

        public Criteria andTokenInfoBetween(String value1, String value2) {
            addCriterion("token_info between", value1, value2, "tokenInfo");
            return (Criteria) this;
        }

        public Criteria andTokenInfoNotBetween(String value1, String value2) {
            addCriterion("token_info not between", value1, value2, "tokenInfo");
            return (Criteria) this;
        }

        public Criteria andCostTimeIsNull() {
            addCriterion("cost_time is null");
            return (Criteria) this;
        }

        public Criteria andCostTimeIsNotNull() {
            addCriterion("cost_time is not null");
            return (Criteria) this;
        }

        public Criteria andCostTimeEqualTo(Integer value) {
            addCriterion("cost_time =", value, "costTime");
            return (Criteria) this;
        }

        public Criteria andCostTimeNotEqualTo(Integer value) {
            addCriterion("cost_time <>", value, "costTime");
            return (Criteria) this;
        }

        public Criteria andCostTimeGreaterThan(Integer value) {
            addCriterion("cost_time >", value, "costTime");
            return (Criteria) this;
        }

        public Criteria andCostTimeGreaterThanOrEqualTo(Integer value) {
            addCriterion("cost_time >=", value, "costTime");
            return (Criteria) this;
        }

        public Criteria andCostTimeLessThan(Integer value) {
            addCriterion("cost_time <", value, "costTime");
            return (Criteria) this;
        }

        public Criteria andCostTimeLessThanOrEqualTo(Integer value) {
            addCriterion("cost_time <=", value, "costTime");
            return (Criteria) this;
        }

        public Criteria andCostTimeIn(List<Integer> values) {
            addCriterion("cost_time in", values, "costTime");
            return (Criteria) this;
        }

        public Criteria andCostTimeNotIn(List<Integer> values) {
            addCriterion("cost_time not in", values, "costTime");
            return (Criteria) this;
        }

        public Criteria andCostTimeBetween(Integer value1, Integer value2) {
            addCriterion("cost_time between", value1, value2, "costTime");
            return (Criteria) this;
        }

        public Criteria andCostTimeNotBetween(Integer value1, Integer value2) {
            addCriterion("cost_time not between", value1, value2, "costTime");
            return (Criteria) this;
        }

        public Criteria andOptUrlIsNull() {
            addCriterion("opt_url is null");
            return (Criteria) this;
        }

        public Criteria andOptUrlIsNotNull() {
            addCriterion("opt_url is not null");
            return (Criteria) this;
        }

        public Criteria andOptUrlEqualTo(String value) {
            addCriterion("opt_url =", value, "optUrl");
            return (Criteria) this;
        }

        public Criteria andOptUrlNotEqualTo(String value) {
            addCriterion("opt_url <>", value, "optUrl");
            return (Criteria) this;
        }

        public Criteria andOptUrlGreaterThan(String value) {
            addCriterion("opt_url >", value, "optUrl");
            return (Criteria) this;
        }

        public Criteria andOptUrlGreaterThanOrEqualTo(String value) {
            addCriterion("opt_url >=", value, "optUrl");
            return (Criteria) this;
        }

        public Criteria andOptUrlLessThan(String value) {
            addCriterion("opt_url <", value, "optUrl");
            return (Criteria) this;
        }

        public Criteria andOptUrlLessThanOrEqualTo(String value) {
            addCriterion("opt_url <=", value, "optUrl");
            return (Criteria) this;
        }

        public Criteria andOptUrlLike(String value) {
            addCriterion("opt_url like", value, "optUrl");
            return (Criteria) this;
        }

        public Criteria andOptUrlNotLike(String value) {
            addCriterion("opt_url not like", value, "optUrl");
            return (Criteria) this;
        }

        public Criteria andOptUrlIn(List<String> values) {
            addCriterion("opt_url in", values, "optUrl");
            return (Criteria) this;
        }

        public Criteria andOptUrlNotIn(List<String> values) {
            addCriterion("opt_url not in", values, "optUrl");
            return (Criteria) this;
        }

        public Criteria andOptUrlBetween(String value1, String value2) {
            addCriterion("opt_url between", value1, value2, "optUrl");
            return (Criteria) this;
        }

        public Criteria andOptUrlNotBetween(String value1, String value2) {
            addCriterion("opt_url not between", value1, value2, "optUrl");
            return (Criteria) this;
        }

        public Criteria andOptCommentIsNull() {
            addCriterion("opt_comment is null");
            return (Criteria) this;
        }

        public Criteria andOptCommentIsNotNull() {
            addCriterion("opt_comment is not null");
            return (Criteria) this;
        }

        public Criteria andOptCommentEqualTo(String value) {
            addCriterion("opt_comment =", value, "optComment");
            return (Criteria) this;
        }

        public Criteria andOptCommentNotEqualTo(String value) {
            addCriterion("opt_comment <>", value, "optComment");
            return (Criteria) this;
        }

        public Criteria andOptCommentGreaterThan(String value) {
            addCriterion("opt_comment >", value, "optComment");
            return (Criteria) this;
        }

        public Criteria andOptCommentGreaterThanOrEqualTo(String value) {
            addCriterion("opt_comment >=", value, "optComment");
            return (Criteria) this;
        }

        public Criteria andOptCommentLessThan(String value) {
            addCriterion("opt_comment <", value, "optComment");
            return (Criteria) this;
        }

        public Criteria andOptCommentLessThanOrEqualTo(String value) {
            addCriterion("opt_comment <=", value, "optComment");
            return (Criteria) this;
        }

        public Criteria andOptCommentLike(String value) {
            addCriterion("opt_comment like", value, "optComment");
            return (Criteria) this;
        }

        public Criteria andOptCommentNotLike(String value) {
            addCriterion("opt_comment not like", value, "optComment");
            return (Criteria) this;
        }

        public Criteria andOptCommentIn(List<String> values) {
            addCriterion("opt_comment in", values, "optComment");
            return (Criteria) this;
        }

        public Criteria andOptCommentNotIn(List<String> values) {
            addCriterion("opt_comment not in", values, "optComment");
            return (Criteria) this;
        }

        public Criteria andOptCommentBetween(String value1, String value2) {
            addCriterion("opt_comment between", value1, value2, "optComment");
            return (Criteria) this;
        }

        public Criteria andOptCommentNotBetween(String value1, String value2) {
            addCriterion("opt_comment not between", value1, value2, "optComment");
            return (Criteria) this;
        }

        public Criteria andOptStatusIsNull() {
            addCriterion("opt_status is null");
            return (Criteria) this;
        }

        public Criteria andOptStatusIsNotNull() {
            addCriterion("opt_status is not null");
            return (Criteria) this;
        }

        public Criteria andOptStatusEqualTo(Integer value) {
            addCriterion("opt_status =", value, "optStatus");
            return (Criteria) this;
        }

        public Criteria andOptStatusNotEqualTo(Integer value) {
            addCriterion("opt_status <>", value, "optStatus");
            return (Criteria) this;
        }

        public Criteria andOptStatusGreaterThan(Integer value) {
            addCriterion("opt_status >", value, "optStatus");
            return (Criteria) this;
        }

        public Criteria andOptStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("opt_status >=", value, "optStatus");
            return (Criteria) this;
        }

        public Criteria andOptStatusLessThan(Integer value) {
            addCriterion("opt_status <", value, "optStatus");
            return (Criteria) this;
        }

        public Criteria andOptStatusLessThanOrEqualTo(Integer value) {
            addCriterion("opt_status <=", value, "optStatus");
            return (Criteria) this;
        }

        public Criteria andOptStatusIn(List<Integer> values) {
            addCriterion("opt_status in", values, "optStatus");
            return (Criteria) this;
        }

        public Criteria andOptStatusNotIn(List<Integer> values) {
            addCriterion("opt_status not in", values, "optStatus");
            return (Criteria) this;
        }

        public Criteria andOptStatusBetween(Integer value1, Integer value2) {
            addCriterion("opt_status between", value1, value2, "optStatus");
            return (Criteria) this;
        }

        public Criteria andOptStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("opt_status not between", value1, value2, "optStatus");
            return (Criteria) this;
        }

        public Criteria andOptMessageIsNull() {
            addCriterion("opt_message is null");
            return (Criteria) this;
        }

        public Criteria andOptMessageIsNotNull() {
            addCriterion("opt_message is not null");
            return (Criteria) this;
        }

        public Criteria andOptMessageEqualTo(String value) {
            addCriterion("opt_message =", value, "optMessage");
            return (Criteria) this;
        }

        public Criteria andOptMessageNotEqualTo(String value) {
            addCriterion("opt_message <>", value, "optMessage");
            return (Criteria) this;
        }

        public Criteria andOptMessageGreaterThan(String value) {
            addCriterion("opt_message >", value, "optMessage");
            return (Criteria) this;
        }

        public Criteria andOptMessageGreaterThanOrEqualTo(String value) {
            addCriterion("opt_message >=", value, "optMessage");
            return (Criteria) this;
        }

        public Criteria andOptMessageLessThan(String value) {
            addCriterion("opt_message <", value, "optMessage");
            return (Criteria) this;
        }

        public Criteria andOptMessageLessThanOrEqualTo(String value) {
            addCriterion("opt_message <=", value, "optMessage");
            return (Criteria) this;
        }

        public Criteria andOptMessageLike(String value) {
            addCriterion("opt_message like", value, "optMessage");
            return (Criteria) this;
        }

        public Criteria andOptMessageNotLike(String value) {
            addCriterion("opt_message not like", value, "optMessage");
            return (Criteria) this;
        }

        public Criteria andOptMessageIn(List<String> values) {
            addCriterion("opt_message in", values, "optMessage");
            return (Criteria) this;
        }

        public Criteria andOptMessageNotIn(List<String> values) {
            addCriterion("opt_message not in", values, "optMessage");
            return (Criteria) this;
        }

        public Criteria andOptMessageBetween(String value1, String value2) {
            addCriterion("opt_message between", value1, value2, "optMessage");
            return (Criteria) this;
        }

        public Criteria andOptMessageNotBetween(String value1, String value2) {
            addCriterion("opt_message not between", value1, value2, "optMessage");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}